//
//  LTRecvMessageModel.m
//  LTIM
//
//  Created by 俊松何 on 2017/4/5.
//  Copyright © 2017年 俊松何. All rights reserved.
//

#import "LTRecvMessageModel.h"


@implementation LTRecvMessageModel
-(instancetype)initWithResponseModel:(LTMessageResponseModel *)model
{
    if(self = [super init])
    {
        _messageResponseModel = model;
    }
    return self;
}

//封装发送的data
-(NSData *)requestSendData {
   
    NSData  *messageData = [_messageResponseModel mj_JSONData];
    NSString *messageJson = [[NSString alloc] initWithData:messageData encoding:NSUTF8StringEncoding];
    NSLog(@"%@",messageJson);
    
    return messageData;
    
}

//解包 回包
-(int)onPostDecode:(NSData*)responseData
{
    NSString *messageJson = [[NSString alloc] initWithData:responseData encoding:NSUTF8StringEncoding];
    NSLog(@"onPostDecode---------%@",messageJson);
   
    
    return 0;
}
//任务结束。
-(int)onTaskEnd:(uint32_t)tid errType:(uint32_t)errtype errCode:(uint32_t)errcode
{
    return 0;
}

@end
